package com.damie.service;

import com.damie.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.damie.param.WasteOrderParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Alon
 * @since 2021-01-19
 */
public interface UserService extends IService<User> {
    /**
     *  废品回收
     * @param wasteOrderParam
     * 接收controller参数
     * @return
     */
    Boolean wasteOrder(WasteOrderParam wasteOrderParam, HttpServletRequest request);

    /**
     * 上传单个图片
     * @param uploadFile
     * 使用第三方依赖
     * @return
     */
    String uploadPicture(MultipartFile uploadFile);

    String qqLogin(String code) throws Exception;
}
